<?php

require_once 'Zend/Gdata/Extension.php';

class Rats_Extension_CdnReport extends Zend_Gdata_Extension
{

    protected $_rootNamespace = 'raws';
    protected $_rootElement = 'cdn-report';

    // protected $_report = null;

    public function __construct() 
    {
        foreach (Raws::$namespaces as $nsPrefix => $nsUri) {
            $this->registerNamespace($nsPrefix, $nsUri);
        }
        parent::__construct();
    }
    
    public function getDOM($doc = NULL, $majorVersion = 1, $minorVersion = NULL)
    {
        $element = parent::getDOM($doc);
        return $element;
    }
    
    protected function takeChildFromDOM($child)
    {
        $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
    
        switch ($absoluteNodeName) {
          default:
              parent::takeChildFromDOM($child);
              break;
        }
    }
    
    
}
